#!/usr/bin/env python
# coding=utf-8

import RPi.GPIO as GPIO
import time

def init():
    channel = 18
    GPIO.setwarnings(False)
    GPIO.setmode(GPIO.BOARD)
    GPIO.setup(channel, GPIO.IN)

    pass

def detct():
    while(1):
    # for i in range():
        if GPIO.input(18) == GPIO.HIGH:
            print("you ren")
        elif GPIO.input(18) == GPIO.LOW:
            print("mei ren")
        time.sleep(2)



init()
detct()
GPIO.cleanup()
